<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.15"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>WB32L003 Standard Peripherals Firmware Library: GPIO</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">WB32L003 Standard Peripherals Firmware Library
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.15 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#groups">Modules</a> &#124;
<a href="#define-members">Macros</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">GPIO<div class="ingroups"><a class="el" href="group___w_b32_l003___std_periph___driver.html">WB32L003_StdPeriph_Driver</a></div></div>  </div>
</div><!--header-->
<div class="contents">

<p>GPIO driver modules.  
<a href="#details">More...</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="groups"></a>
Modules</h2></td></tr>
<tr class="memitem:group___g_p_i_o___exported___constants"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___g_p_i_o___exported___constants.html">GPIO_Exported_Constants</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:group___g_p_i_o___private___functions"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___g_p_i_o___private___functions.html">GPIO_Private_Functions</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:ga68b2a1f0b05c13978217db5439c7f790"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><b>IS_GPIO_ALL_PERIPH</b>(PERIPH)</td></tr>
<tr class="separator:ga68b2a1f0b05c13978217db5439c7f790"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaddf7154b7f30b7c0a70f3aeaff5ddffc"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><b>IS_GET_GPIO_PIN</b>(PIN)</td></tr>
<tr class="separator:gaddf7154b7f30b7c0a70f3aeaff5ddffc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gad6ec74e33360395535ad5d91ba6d4781"><td class="memItemLeft" align="right" valign="top"><a id="gad6ec74e33360395535ad5d91ba6d4781"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>IS_GPIO_PIN</b>(PIN)&#160;&#160;&#160;(((PIN) &amp; 0x000000FF) != (uint32_t)0x00)</td></tr>
<tr class="separator:gad6ec74e33360395535ad5d91ba6d4781"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga6b882caa8ed9857c5c7267959a7818c5"><td class="memItemLeft" align="right" valign="top"><a id="ga6b882caa8ed9857c5c7267959a7818c5"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>IS_GPIO_BIT_ACTION</b>(ACTION)&#160;&#160;&#160;(((ACTION) == Bit_RESET) || ((ACTION) == Bit_SET))</td></tr>
<tr class="separator:ga6b882caa8ed9857c5c7267959a7818c5"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:gaa60bdf3182c44b5fa818f237042f52ee"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___g_p_i_o.html#gaa60bdf3182c44b5fa818f237042f52ee">GPIO_DeInit</a> (<a class="el" href="struct_g_p_i_o___type_def.html">GPIO_TypeDef</a> *GPIOx)</td></tr>
<tr class="memdesc:gaa60bdf3182c44b5fa818f237042f52ee"><td class="mdescLeft">&#160;</td><td class="mdescRight">De-initializes the GPIOx peripheral registers to their default reset values.  <a href="#gaa60bdf3182c44b5fa818f237042f52ee">More...</a><br /></td></tr>
<tr class="separator:gaa60bdf3182c44b5fa818f237042f52ee"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gab109a0ce9ac596f69b0283a897764994"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___g_p_i_o.html#gab109a0ce9ac596f69b0283a897764994">GPIO_Init</a> (<a class="el" href="struct_g_p_i_o___type_def.html">GPIO_TypeDef</a> *GPIOx, uint16_t GPIO_Pin, uint32_t PinConfig)</td></tr>
<tr class="memdesc:gab109a0ce9ac596f69b0283a897764994"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initializes the GPIOx peripheral according to the PinConfig.  <a href="#gab109a0ce9ac596f69b0283a897764994">More...</a><br /></td></tr>
<tr class="separator:gab109a0ce9ac596f69b0283a897764994"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga60359a4144cb88e500edc35d45bd89f0"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___g_p_i_o.html#ga60359a4144cb88e500edc35d45bd89f0">GPIO_SetAFPin</a> (<a class="el" href="struct_g_p_i_o___type_def.html">GPIO_TypeDef</a> *GPIOx, uint16_t GPIO_Pin, uint32_t Alternate)</td></tr>
<tr class="memdesc:ga60359a4144cb88e500edc35d45bd89f0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Configure gpio alternate function of any pins for a dedicated port.  <a href="#ga60359a4144cb88e500edc35d45bd89f0">More...</a><br /></td></tr>
<tr class="separator:ga60359a4144cb88e500edc35d45bd89f0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga98772ef6b639b3fa06c8ae5ba28d3aaa"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___g_p_i_o.html#ga98772ef6b639b3fa06c8ae5ba28d3aaa">GPIO_ReadInputDataBit</a> (<a class="el" href="struct_g_p_i_o___type_def.html">GPIO_TypeDef</a> *GPIOx, uint16_t GPIO_Pin)</td></tr>
<tr class="memdesc:ga98772ef6b639b3fa06c8ae5ba28d3aaa"><td class="mdescLeft">&#160;</td><td class="mdescRight">Reads the specified input port pin.  <a href="#ga98772ef6b639b3fa06c8ae5ba28d3aaa">More...</a><br /></td></tr>
<tr class="separator:ga98772ef6b639b3fa06c8ae5ba28d3aaa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga139a33adc8409288e9f193bbebb5a0f7"><td class="memItemLeft" align="right" valign="top">uint16_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___g_p_i_o.html#ga139a33adc8409288e9f193bbebb5a0f7">GPIO_ReadInputData</a> (<a class="el" href="struct_g_p_i_o___type_def.html">GPIO_TypeDef</a> *GPIOx)</td></tr>
<tr class="memdesc:ga139a33adc8409288e9f193bbebb5a0f7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Reads the specified GPIO input data port.  <a href="#ga139a33adc8409288e9f193bbebb5a0f7">More...</a><br /></td></tr>
<tr class="separator:ga139a33adc8409288e9f193bbebb5a0f7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga138270f8695b105b7c6ed405792919c1"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___g_p_i_o.html#ga138270f8695b105b7c6ed405792919c1">GPIO_ReadOutputDataBit</a> (<a class="el" href="struct_g_p_i_o___type_def.html">GPIO_TypeDef</a> *GPIOx, uint16_t GPIO_Pin)</td></tr>
<tr class="memdesc:ga138270f8695b105b7c6ed405792919c1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Reads the specified output data port bit.  <a href="#ga138270f8695b105b7c6ed405792919c1">More...</a><br /></td></tr>
<tr class="separator:ga138270f8695b105b7c6ed405792919c1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaf8938a34280b7dc3e39872a7c17bb323"><td class="memItemLeft" align="right" valign="top">uint16_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___g_p_i_o.html#gaf8938a34280b7dc3e39872a7c17bb323">GPIO_ReadOutputData</a> (<a class="el" href="struct_g_p_i_o___type_def.html">GPIO_TypeDef</a> *GPIOx)</td></tr>
<tr class="memdesc:gaf8938a34280b7dc3e39872a7c17bb323"><td class="mdescLeft">&#160;</td><td class="mdescRight">Reads the specified GPIO output data port.  <a href="#gaf8938a34280b7dc3e39872a7c17bb323">More...</a><br /></td></tr>
<tr class="separator:gaf8938a34280b7dc3e39872a7c17bb323"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga9e1352eed7c6620e18af2d86f6b6ff8e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___g_p_i_o.html#ga9e1352eed7c6620e18af2d86f6b6ff8e">GPIO_SetBits</a> (<a class="el" href="struct_g_p_i_o___type_def.html">GPIO_TypeDef</a> *GPIOx, uint16_t GPIO_Pin)</td></tr>
<tr class="memdesc:ga9e1352eed7c6620e18af2d86f6b6ff8e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the selected data port bits.  <a href="#ga9e1352eed7c6620e18af2d86f6b6ff8e">More...</a><br /></td></tr>
<tr class="separator:ga9e1352eed7c6620e18af2d86f6b6ff8e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga6fcd35b207a66608dd2c9d7de9247dc8"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___g_p_i_o.html#ga6fcd35b207a66608dd2c9d7de9247dc8">GPIO_ResetBits</a> (<a class="el" href="struct_g_p_i_o___type_def.html">GPIO_TypeDef</a> *GPIOx, uint16_t GPIO_Pin)</td></tr>
<tr class="memdesc:ga6fcd35b207a66608dd2c9d7de9247dc8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Clears the selected data port bits.  <a href="#ga6fcd35b207a66608dd2c9d7de9247dc8">More...</a><br /></td></tr>
<tr class="separator:ga6fcd35b207a66608dd2c9d7de9247dc8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga8f7b237fd744d9f7456fbe0da47a9b80"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___g_p_i_o.html#ga8f7b237fd744d9f7456fbe0da47a9b80">GPIO_WriteBit</a> (<a class="el" href="struct_g_p_i_o___type_def.html">GPIO_TypeDef</a> *GPIOx, uint16_t GPIO_Pin, <a class="el" href="group___g_p_i_o___exported___constants.html#ga176130b21c0e719121470a6042d4cf19">BitAction</a> BitVal)</td></tr>
<tr class="memdesc:ga8f7b237fd744d9f7456fbe0da47a9b80"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets or clears the selected data port bit.  <a href="#ga8f7b237fd744d9f7456fbe0da47a9b80">More...</a><br /></td></tr>
<tr class="separator:ga8f7b237fd744d9f7456fbe0da47a9b80"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaa925f19c8547a00c7a0c269a84873bf9"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___g_p_i_o.html#gaa925f19c8547a00c7a0c269a84873bf9">GPIO_Write</a> (<a class="el" href="struct_g_p_i_o___type_def.html">GPIO_TypeDef</a> *GPIOx, uint16_t PortVal)</td></tr>
<tr class="memdesc:gaa925f19c8547a00c7a0c269a84873bf9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Writes data to the specified GPIO data port.  <a href="#gaa925f19c8547a00c7a0c269a84873bf9">More...</a><br /></td></tr>
<tr class="separator:gaa925f19c8547a00c7a0c269a84873bf9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gac1b837c66258872740d5f89f23549ab1"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___g_p_i_o.html#gac1b837c66258872740d5f89f23549ab1">GPIO_ToggleBits</a> (<a class="el" href="struct_g_p_i_o___type_def.html">GPIO_TypeDef</a> *GPIOx, uint16_t GPIO_Pin)</td></tr>
<tr class="memdesc:gac1b837c66258872740d5f89f23549ab1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Toggle data value for several pin of specified port.  <a href="#gac1b837c66258872740d5f89f23549ab1">More...</a><br /></td></tr>
<tr class="separator:gac1b837c66258872740d5f89f23549ab1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga8a76463af43c4879de43feb9ceaf19e7"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___g_p_i_o.html#ga8a76463af43c4879de43feb9ceaf19e7">GPIO_DriveCurrentConfig</a> (<a class="el" href="struct_g_p_i_o___type_def.html">GPIO_TypeDef</a> *GPIOx, uint16_t GPIO_Pin, uint32_t Current)</td></tr>
<tr class="memdesc:ga8a76463af43c4879de43feb9ceaf19e7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Configure the drive current of several pins for a specified port.  <a href="#ga8a76463af43c4879de43feb9ceaf19e7">More...</a><br /></td></tr>
<tr class="separator:ga8a76463af43c4879de43feb9ceaf19e7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaa488f5904cef147ada02feca1de10fd7"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___g_p_i_o.html#gaa488f5904cef147ada02feca1de10fd7">GPIO_EXTIConfig</a> (<a class="el" href="struct_g_p_i_o___type_def.html">GPIO_TypeDef</a> *GPIOx, uint16_t GPIO_Pin, uint32_t EXTI_Config)</td></tr>
<tr class="memdesc:gaa488f5904cef147ada02feca1de10fd7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Handles the configuration of GPIO_Pin's EXTI.  <a href="#gaa488f5904cef147ada02feca1de10fd7">More...</a><br /></td></tr>
<tr class="separator:gaa488f5904cef147ada02feca1de10fd7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga3a98f295ef315b81c22b7e95a5f83948"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___g_p_i_o.html#ga3a98f295ef315b81c22b7e95a5f83948">GPIO_DebounceConfig</a> (<a class="el" href="struct_g_p_i_o___type_def.html">GPIO_TypeDef</a> *GPIOx, uint16_t GPIO_Pin, uint32_t DebounceConfig)</td></tr>
<tr class="memdesc:ga3a98f295ef315b81c22b7e95a5f83948"><td class="mdescLeft">&#160;</td><td class="mdescRight">Handles the configuration of GPIO debounce.  <a href="#ga3a98f295ef315b81c22b7e95a5f83948">More...</a><br /></td></tr>
<tr class="separator:ga3a98f295ef315b81c22b7e95a5f83948"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaa66bd2ddefd603695034080bb0b6f5d8"><td class="memItemLeft" align="right" valign="top">FlagStatus&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___g_p_i_o.html#gaa66bd2ddefd603695034080bb0b6f5d8">GPIO_EXTI_GetFlagStatus</a> (<a class="el" href="struct_g_p_i_o___type_def.html">GPIO_TypeDef</a> *GPIOx, uint16_t GPIO_Pin)</td></tr>
<tr class="memdesc:gaa66bd2ddefd603695034080bb0b6f5d8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Checks whether the specified GPIO_Pin's EXTI line flag is set or not.  <a href="#gaa66bd2ddefd603695034080bb0b6f5d8">More...</a><br /></td></tr>
<tr class="separator:gaa66bd2ddefd603695034080bb0b6f5d8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaba67902989971e4827cc028b7cf795a9"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___g_p_i_o.html#gaba67902989971e4827cc028b7cf795a9">GPIO_EXTI_ClearFlag</a> (<a class="el" href="struct_g_p_i_o___type_def.html">GPIO_TypeDef</a> *GPIOx, uint16_t GPIO_Pin)</td></tr>
<tr class="memdesc:gaba67902989971e4827cc028b7cf795a9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Clears the GPIO_Pin's EXTI line pending flags.  <a href="#gaba67902989971e4827cc028b7cf795a9">More...</a><br /></td></tr>
<tr class="separator:gaba67902989971e4827cc028b7cf795a9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga085def665ec9a4477f1916c54bd62bf5"><td class="memItemLeft" align="right" valign="top">ITStatus&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___g_p_i_o.html#ga085def665ec9a4477f1916c54bd62bf5">GPIO_EXTI_GetIT</a> (<a class="el" href="struct_g_p_i_o___type_def.html">GPIO_TypeDef</a> *GPIOx, uint16_t GPIO_Pin)</td></tr>
<tr class="memdesc:ga085def665ec9a4477f1916c54bd62bf5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Checks that the interrupt of the EXTI line for the specified GPIO Pin is enabled.  <a href="#ga085def665ec9a4477f1916c54bd62bf5">More...</a><br /></td></tr>
<tr class="separator:ga085def665ec9a4477f1916c54bd62bf5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga2ba0cbf96bbf15c9ae4c36786453ec58"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___g_p_i_o.html#ga2ba0cbf96bbf15c9ae4c36786453ec58">GPIO_EXTI_ClearIT</a> (<a class="el" href="struct_g_p_i_o___type_def.html">GPIO_TypeDef</a> *GPIOx, uint16_t GPIO_Pin)</td></tr>
<tr class="memdesc:ga2ba0cbf96bbf15c9ae4c36786453ec58"><td class="mdescLeft">&#160;</td><td class="mdescRight">Clears the GPIO_Pin's EXTI line pending bits.  <a href="#ga2ba0cbf96bbf15c9ae4c36786453ec58">More...</a><br /></td></tr>
<tr class="separator:ga2ba0cbf96bbf15c9ae4c36786453ec58"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<p>GPIO driver modules. </p>
<h2 class="groupheader">Macro Definition Documentation</h2>
<a id="gaddf7154b7f30b7c0a70f3aeaff5ddffc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaddf7154b7f30b7c0a70f3aeaff5ddffc">&#9670;&nbsp;</a></span>IS_GET_GPIO_PIN</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define IS_GET_GPIO_PIN</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">PIN</td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<b>Value:</b><div class="fragment"><div class="line">(((PIN) == <a class="code" href="group___g_p_i_o___pins___define.html#gab305b8d1be9f89bf2b4a05589b456049">GPIO_Pin_0</a>) || \</div><div class="line">                              ((PIN) == <a class="code" href="group___g_p_i_o___pins___define.html#ga29db642c26f1fa0fffc3ecadcd30f82b">GPIO_Pin_1</a>) || \</div><div class="line">                              ((PIN) == <a class="code" href="group___g_p_i_o___pins___define.html#gabdf6630324b2f99360537a310687187c">GPIO_Pin_2</a>) || \</div><div class="line">                              ((PIN) == <a class="code" href="group___g_p_i_o___pins___define.html#ga763c6544859dbe28cd3f8ad820045556">GPIO_Pin_3</a>) || \</div><div class="line">                              ((PIN) == <a class="code" href="group___g_p_i_o___pins___define.html#gacbf04d09b954606cdcc55eb2e81780e3">GPIO_Pin_4</a>) || \</div><div class="line">                              ((PIN) == <a class="code" href="group___g_p_i_o___pins___define.html#ga32dbe930f52ce5ab60190c65e9dc741e">GPIO_Pin_5</a>) || \</div><div class="line">                              ((PIN) == <a class="code" href="group___g_p_i_o___pins___define.html#gaf047899d873f27c2db9f50b342e35a58">GPIO_Pin_6</a>) || \</div><div class="line">                              ((PIN) == <a class="code" href="group___g_p_i_o___pins___define.html#ga7346b6ce5507bd28a7a79e7dcc816c08">GPIO_Pin_7</a>))</div><div class="ttc" id="group___g_p_i_o___pins___define_html_gabdf6630324b2f99360537a310687187c"><div class="ttname"><a href="group___g_p_i_o___pins___define.html#gabdf6630324b2f99360537a310687187c">GPIO_Pin_2</a></div><div class="ttdeci">#define GPIO_Pin_2</div><div class="ttdef"><b>Definition:</b> wb32l003_gpio.h:56</div></div>
<div class="ttc" id="group___g_p_i_o___pins___define_html_gab305b8d1be9f89bf2b4a05589b456049"><div class="ttname"><a href="group___g_p_i_o___pins___define.html#gab305b8d1be9f89bf2b4a05589b456049">GPIO_Pin_0</a></div><div class="ttdeci">#define GPIO_Pin_0</div><div class="ttdef"><b>Definition:</b> wb32l003_gpio.h:54</div></div>
<div class="ttc" id="group___g_p_i_o___pins___define_html_gacbf04d09b954606cdcc55eb2e81780e3"><div class="ttname"><a href="group___g_p_i_o___pins___define.html#gacbf04d09b954606cdcc55eb2e81780e3">GPIO_Pin_4</a></div><div class="ttdeci">#define GPIO_Pin_4</div><div class="ttdef"><b>Definition:</b> wb32l003_gpio.h:58</div></div>
<div class="ttc" id="group___g_p_i_o___pins___define_html_ga29db642c26f1fa0fffc3ecadcd30f82b"><div class="ttname"><a href="group___g_p_i_o___pins___define.html#ga29db642c26f1fa0fffc3ecadcd30f82b">GPIO_Pin_1</a></div><div class="ttdeci">#define GPIO_Pin_1</div><div class="ttdef"><b>Definition:</b> wb32l003_gpio.h:55</div></div>
<div class="ttc" id="group___g_p_i_o___pins___define_html_ga7346b6ce5507bd28a7a79e7dcc816c08"><div class="ttname"><a href="group___g_p_i_o___pins___define.html#ga7346b6ce5507bd28a7a79e7dcc816c08">GPIO_Pin_7</a></div><div class="ttdeci">#define GPIO_Pin_7</div><div class="ttdef"><b>Definition:</b> wb32l003_gpio.h:61</div></div>
<div class="ttc" id="group___g_p_i_o___pins___define_html_ga32dbe930f52ce5ab60190c65e9dc741e"><div class="ttname"><a href="group___g_p_i_o___pins___define.html#ga32dbe930f52ce5ab60190c65e9dc741e">GPIO_Pin_5</a></div><div class="ttdeci">#define GPIO_Pin_5</div><div class="ttdef"><b>Definition:</b> wb32l003_gpio.h:59</div></div>
<div class="ttc" id="group___g_p_i_o___pins___define_html_gaf047899d873f27c2db9f50b342e35a58"><div class="ttname"><a href="group___g_p_i_o___pins___define.html#gaf047899d873f27c2db9f50b342e35a58">GPIO_Pin_6</a></div><div class="ttdeci">#define GPIO_Pin_6</div><div class="ttdef"><b>Definition:</b> wb32l003_gpio.h:60</div></div>
<div class="ttc" id="group___g_p_i_o___pins___define_html_ga763c6544859dbe28cd3f8ad820045556"><div class="ttname"><a href="group___g_p_i_o___pins___define.html#ga763c6544859dbe28cd3f8ad820045556">GPIO_Pin_3</a></div><div class="ttdeci">#define GPIO_Pin_3</div><div class="ttdef"><b>Definition:</b> wb32l003_gpio.h:57</div></div>
</div><!-- fragment -->
</div>
</div>
<a id="ga68b2a1f0b05c13978217db5439c7f790"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga68b2a1f0b05c13978217db5439c7f790">&#9670;&nbsp;</a></span>IS_GPIO_ALL_PERIPH</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define IS_GPIO_ALL_PERIPH</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">PERIPH</td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<b>Value:</b><div class="fragment"><div class="line">(((PERIPH) == GPIOA) || \</div><div class="line">                                    ((PERIPH) == GPIOB) || \</div><div class="line">                                    ((PERIPH) == GPIOC) || \</div><div class="line">                                    ((PERIPH) == GPIOD))</div></div><!-- fragment -->
</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a id="ga3a98f295ef315b81c22b7e95a5f83948"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga3a98f295ef315b81c22b7e95a5f83948">&#9670;&nbsp;</a></span>GPIO_DebounceConfig()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void GPIO_DebounceConfig </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_g_p_i_o___type_def.html">GPIO_TypeDef</a> *&#160;</td>
          <td class="paramname"><em>GPIOx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>GPIO_Pin</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>DebounceConfig</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Handles the configuration of GPIO debounce. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">GPIOx</td><td>Where x can be (A..D) to select the GPIO peripheral. </td></tr>
    <tr><td class="paramname">GPIO_Pin</td><td>Specifies the pins to be configured. This parameter can be any combination of GPIO_Pin_x where x can be (0..7). </td></tr>
    <tr><td class="paramname">DebounceConfig</td><td>The port bit configuration. This parameter must be a combination of one GPIO_DB_x flags. </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">None</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="gaa60bdf3182c44b5fa818f237042f52ee"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaa60bdf3182c44b5fa818f237042f52ee">&#9670;&nbsp;</a></span>GPIO_DeInit()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void GPIO_DeInit </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_g_p_i_o___type_def.html">GPIO_TypeDef</a> *&#160;</td>
          <td class="paramname"><em>GPIOx</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>De-initializes the GPIOx peripheral registers to their default reset values. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">GPIOx</td><td>Where x can be (A..D) to select the GPIO peripheral. </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">None</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga8a76463af43c4879de43feb9ceaf19e7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga8a76463af43c4879de43feb9ceaf19e7">&#9670;&nbsp;</a></span>GPIO_DriveCurrentConfig()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void GPIO_DriveCurrentConfig </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_g_p_i_o___type_def.html">GPIO_TypeDef</a> *&#160;</td>
          <td class="paramname"><em>GPIOx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>GPIO_Pin</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>Current</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Configure the drive current of several pins for a specified port. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">GPIOx</td><td>Where x can be (A..D) to select the GPIO peripheral. </td></tr>
    <tr><td class="paramname">GPIO_Pin</td><td>Specifies the pins to be configured. This parameter can be any combination of GPIO_Pin_x where x can be (0..7). </td></tr>
    <tr><td class="paramname">Current</td><td>Specifies the drive current. This parameter can be one of the following values: <ul>
<li>GPIO_DRV_HIGH: High driving strength. </li>
<li>GPIO_DRV_LOW: Low driving strength </li>
</ul>
</td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">None</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="gaba67902989971e4827cc028b7cf795a9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaba67902989971e4827cc028b7cf795a9">&#9670;&nbsp;</a></span>GPIO_EXTI_ClearFlag()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void GPIO_EXTI_ClearFlag </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_g_p_i_o___type_def.html">GPIO_TypeDef</a> *&#160;</td>
          <td class="paramname"><em>GPIOx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>GPIO_Pin</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Clears the GPIO_Pin's EXTI line pending flags. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">GPIOx</td><td>Where x can be (A..D) to select the GPIO peripheral. </td></tr>
    <tr><td class="paramname">GPIO_Pin</td><td>Specifies the pins flags to clear. This parameter can be any combination of GPIO_Pin_x where x can be (0..7). </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">None</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga2ba0cbf96bbf15c9ae4c36786453ec58"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga2ba0cbf96bbf15c9ae4c36786453ec58">&#9670;&nbsp;</a></span>GPIO_EXTI_ClearIT()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void GPIO_EXTI_ClearIT </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_g_p_i_o___type_def.html">GPIO_TypeDef</a> *&#160;</td>
          <td class="paramname"><em>GPIOx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>GPIO_Pin</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Clears the GPIO_Pin's EXTI line pending bits. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">GPIOx</td><td>Where x can be (A..D) to select the GPIO peripheral. </td></tr>
    <tr><td class="paramname">GPIO_Pin</td><td>Specifies the GPIO_Pin's EXTI lines to clear. This parameter can be any combination of GPIO_Pin_x where x can be (0..7). </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">None</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="gaa66bd2ddefd603695034080bb0b6f5d8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaa66bd2ddefd603695034080bb0b6f5d8">&#9670;&nbsp;</a></span>GPIO_EXTI_GetFlagStatus()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">FlagStatus GPIO_EXTI_GetFlagStatus </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_g_p_i_o___type_def.html">GPIO_TypeDef</a> *&#160;</td>
          <td class="paramname"><em>GPIOx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>GPIO_Pin</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Checks whether the specified GPIO_Pin's EXTI line flag is set or not. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">GPIOx</td><td>Where x can be (A..D) to select the GPIO peripheral. </td></tr>
    <tr><td class="paramname">GPIO_Pin</td><td>specifies the pins flag to check. This parameter can be any combination of GPIO_Pin_x where x can be (0..7). </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">The</td><td>new state of GPIO_Pin's EXTI line (SET or RESET). </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga085def665ec9a4477f1916c54bd62bf5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga085def665ec9a4477f1916c54bd62bf5">&#9670;&nbsp;</a></span>GPIO_EXTI_GetIT()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ITStatus GPIO_EXTI_GetIT </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_g_p_i_o___type_def.html">GPIO_TypeDef</a> *&#160;</td>
          <td class="paramname"><em>GPIOx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>GPIO_Pin</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Checks that the interrupt of the EXTI line for the specified GPIO Pin is enabled. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">GPIOx</td><td>Where x can be (A..D) to select the GPIO peripheral. </td></tr>
    <tr><td class="paramname">GPIO_Pin</td><td>Specifies the pins to check. This parameter can be any combination of GPIO_Pin_x where x can be (0..7). </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">The</td><td>new state of interrupt enabled for the GPIO_Pin's EXTI line (SET or RESET). </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="gaa488f5904cef147ada02feca1de10fd7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaa488f5904cef147ada02feca1de10fd7">&#9670;&nbsp;</a></span>GPIO_EXTIConfig()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void GPIO_EXTIConfig </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_g_p_i_o___type_def.html">GPIO_TypeDef</a> *&#160;</td>
          <td class="paramname"><em>GPIOx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>GPIO_Pin</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>EXTI_Config</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Handles the configuration of GPIO_Pin's EXTI. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">GPIOx</td><td>Where x can be (A..D) to select the GPIO peripheral. </td></tr>
    <tr><td class="paramname">GPIO_Pin</td><td>Specifies the pins to be configured. This parameter can be any combination of GPIO_Pin_x where x can be (0..7). </td></tr>
    <tr><td class="paramname">EXTI_Config</td><td>The port bit configuration. This parameter must be a combination of one GPIO_EXTI_define GPIO_EXTI_x flags. </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">None</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="gab109a0ce9ac596f69b0283a897764994"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gab109a0ce9ac596f69b0283a897764994">&#9670;&nbsp;</a></span>GPIO_Init()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void GPIO_Init </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_g_p_i_o___type_def.html">GPIO_TypeDef</a> *&#160;</td>
          <td class="paramname"><em>GPIOx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>GPIO_Pin</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>PinConfig</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Initializes the GPIOx peripheral according to the PinConfig. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">GPIOx</td><td>Where x can be (A..D) to select the GPIO peripheral. </td></tr>
    <tr><td class="paramname">GPIO_Pin</td><td>Specifies the port bit to be initialized. This parameter can be any combination of GPIO_Pin_x where x can be (0..7). </td></tr>
    <tr><td class="paramname">PinConfig</td><td>The port bit configuration. This parameter must be a combination of one GPIO_MODE_x flag, one GPIO_OTYPE_x flag, one GPIO_PUPD_x flag, one GPIO_DRV_x flag, one GPIO_SPEED_x flag and one GPIO_AFx flag. </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">None</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga139a33adc8409288e9f193bbebb5a0f7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga139a33adc8409288e9f193bbebb5a0f7">&#9670;&nbsp;</a></span>GPIO_ReadInputData()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint16_t GPIO_ReadInputData </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_g_p_i_o___type_def.html">GPIO_TypeDef</a> *&#160;</td>
          <td class="paramname"><em>GPIOx</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Reads the specified GPIO input data port. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">GPIOx</td><td>Where x can be (A..D) to select the GPIO peripheral. </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">GPIO</td><td>input data port value. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga98772ef6b639b3fa06c8ae5ba28d3aaa"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga98772ef6b639b3fa06c8ae5ba28d3aaa">&#9670;&nbsp;</a></span>GPIO_ReadInputDataBit()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t GPIO_ReadInputDataBit </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_g_p_i_o___type_def.html">GPIO_TypeDef</a> *&#160;</td>
          <td class="paramname"><em>GPIOx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>GPIO_Pin</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Reads the specified input port pin. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">GPIOx</td><td>Where x can be (A..D) to select the GPIO peripheral. </td></tr>
    <tr><td class="paramname">GPIO_Pin</td><td>Specifies the port bit to read. This parameter can be GPIO_Pin_x where x can be (0..7). </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">The</td><td>input port pin value. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="gaf8938a34280b7dc3e39872a7c17bb323"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaf8938a34280b7dc3e39872a7c17bb323">&#9670;&nbsp;</a></span>GPIO_ReadOutputData()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint16_t GPIO_ReadOutputData </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_g_p_i_o___type_def.html">GPIO_TypeDef</a> *&#160;</td>
          <td class="paramname"><em>GPIOx</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Reads the specified GPIO output data port. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">GPIOx</td><td>Where x can be (A..D) to select the GPIO peripheral. </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">GPIO</td><td>output data port value. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga138270f8695b105b7c6ed405792919c1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga138270f8695b105b7c6ed405792919c1">&#9670;&nbsp;</a></span>GPIO_ReadOutputDataBit()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t GPIO_ReadOutputDataBit </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_g_p_i_o___type_def.html">GPIO_TypeDef</a> *&#160;</td>
          <td class="paramname"><em>GPIOx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>GPIO_Pin</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Reads the specified output data port bit. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">GPIOx</td><td>Where x can be (A..D) to select the GPIO peripheral. </td></tr>
    <tr><td class="paramname">GPIO_Pin</td><td>Specifies the port bit to read. This parameter can be GPIO_Pin_x where x can be (0..7). </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">The</td><td>output port pin value. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga6fcd35b207a66608dd2c9d7de9247dc8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga6fcd35b207a66608dd2c9d7de9247dc8">&#9670;&nbsp;</a></span>GPIO_ResetBits()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void GPIO_ResetBits </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_g_p_i_o___type_def.html">GPIO_TypeDef</a> *&#160;</td>
          <td class="paramname"><em>GPIOx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>GPIO_Pin</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Clears the selected data port bits. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">GPIOx</td><td>Where x can be (A..D) to select the GPIO peripheral. </td></tr>
    <tr><td class="paramname">GPIO_Pin</td><td>Specifies the port bits to be written. This parameter can be any combination of GPIO_Pin_x where x can be (0..7). </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">None</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga60359a4144cb88e500edc35d45bd89f0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga60359a4144cb88e500edc35d45bd89f0">&#9670;&nbsp;</a></span>GPIO_SetAFPin()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void GPIO_SetAFPin </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_g_p_i_o___type_def.html">GPIO_TypeDef</a> *&#160;</td>
          <td class="paramname"><em>GPIOx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>GPIO_Pin</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>Alternate</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Configure gpio alternate function of any pins for a dedicated port. </p>
<dl class="section note"><dt>Note</dt><dd>Possible values are from AF0 to AF15 depending on target. </dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">GPIOx</td><td>Where x can be (A..D) to select the GPIO peripheral. </td></tr>
    <tr><td class="paramname">GPIO_Pin</td><td>Specifies the port bits to configure. This parameter can be any combination of GPIO_Pin_x where x can be (0..7). </td></tr>
    <tr><td class="paramname">Alternate</td><td>This parameter can be GPIO_AFx where x can be (0..15). </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">None</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga9e1352eed7c6620e18af2d86f6b6ff8e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga9e1352eed7c6620e18af2d86f6b6ff8e">&#9670;&nbsp;</a></span>GPIO_SetBits()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void GPIO_SetBits </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_g_p_i_o___type_def.html">GPIO_TypeDef</a> *&#160;</td>
          <td class="paramname"><em>GPIOx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>GPIO_Pin</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sets the selected data port bits. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">GPIOx</td><td>Where x can be (A..D) to select the GPIO peripheral. </td></tr>
    <tr><td class="paramname">GPIO_Pin</td><td>Specifies the port bits to be written. This parameter can be any combination of GPIO_Pin_x where x can be (0..7). </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">None</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="gac1b837c66258872740d5f89f23549ab1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gac1b837c66258872740d5f89f23549ab1">&#9670;&nbsp;</a></span>GPIO_ToggleBits()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void GPIO_ToggleBits </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_g_p_i_o___type_def.html">GPIO_TypeDef</a> *&#160;</td>
          <td class="paramname"><em>GPIOx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>GPIO_Pin</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Toggle data value for several pin of specified port. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">GPIOx</td><td>Where x can be (A..D) to select the GPIO peripheral. </td></tr>
    <tr><td class="paramname">GPIO_Pin</td><td>Specifies the pins to be toggled. This parameter can be any combination of GPIO_Pin_x where x can be (0..7). </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">None</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="gaa925f19c8547a00c7a0c269a84873bf9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaa925f19c8547a00c7a0c269a84873bf9">&#9670;&nbsp;</a></span>GPIO_Write()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void GPIO_Write </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_g_p_i_o___type_def.html">GPIO_TypeDef</a> *&#160;</td>
          <td class="paramname"><em>GPIOx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>PortVal</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Writes data to the specified GPIO data port. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">GPIOx</td><td>Where x can be (A..D) to select the GPIO peripheral. </td></tr>
    <tr><td class="paramname">PortVal</td><td>Specifies the value to be written to the port output data register. </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">None</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga8f7b237fd744d9f7456fbe0da47a9b80"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga8f7b237fd744d9f7456fbe0da47a9b80">&#9670;&nbsp;</a></span>GPIO_WriteBit()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void GPIO_WriteBit </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_g_p_i_o___type_def.html">GPIO_TypeDef</a> *&#160;</td>
          <td class="paramname"><em>GPIOx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>GPIO_Pin</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group___g_p_i_o___exported___constants.html#ga176130b21c0e719121470a6042d4cf19">BitAction</a>&#160;</td>
          <td class="paramname"><em>BitVal</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sets or clears the selected data port bit. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">GPIOx</td><td>Where x can be (A..D) to select the GPIO peripheral. </td></tr>
    <tr><td class="paramname">GPIO_Pin</td><td>Specifies the port bit to be written. This parameter can be one of GPIO_Pin_x where x can be (0..7). </td></tr>
    <tr><td class="paramname">BitVal</td><td>Specifies the value to be written to the selected bit. This parameter can be one of the BitAction enum values: <ul>
<li>Bit_RESET: to clear the port pin </li>
<li>Bit_SET: to set the port pin </li>
</ul>
</td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">None</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by Westberry Technology (ChangZhou) Corp., Ltd. All rights reserved.
</small></address>
</body>
</html>
